import request from '@/utils/request'

// 查询订单信息列表列表
export function listOrderInitiate(query) {
  return request({
    url: '/system/orderInitiate/list',
    method: 'get',
    params: query
  })
}

// 查询订单信息列表详细
export function getOrderInitiate(orderId) {
  return request({
    url: '/system/orderInitiate/' + orderId,
    method: 'get'
  })
}

// 新增订单信息列表
export function addOrderInitiate(data) {
  return request({
    url: '/system/orderInitiate',
    method: 'post',
    data: data
  })
}

// 修改订单信息列表
export function updateOrderInitiate(data) {
  return request({
    url: '/system/orderInitiate',
    method: 'put',
    data: data
  })
}

// 删除订单信息列表
export function delOrderInitiate(orderId) {
  return request({
    url: '/system/orderInitiate/' + orderId,
    method: 'delete'
  })
}
